package com.eastfair.common.controller.pay;

import com.eastfair.common.api.TransactionOrderFeign;
import core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Du Xiaobo
 * @date 2023/4/21 10:26
 */
@Component
@Slf4j
public class SyncTransactionOrderTask {

    @Resource
    private TransactionOrderFeign transactionOrderFeign;

    /**
     * 定时将没有交易流水号的订单同步荆艺
     */
    @XxlJob("syncOrderToJY")
    public void syncTransactionOrderTaskToJY() {
        transactionOrderFeign.executeSyncOrderToJY(null);
    }
}
